///**
// * BeanConvert.java   2017年8月20日 上午11:20:58 by xuebing
// *
// * Copyright (c) 2010 - 2017 All rights reserved.
// *
// */
//package com.rongmai.db.utils;
//
//public class BeanConvert {
//
//    public static OrderVo fromTradeOrder(TradeOrder tradeOrder) {
//        OrderVo order = new OrderVo();
//        order.setCreateTime(tradeOrder.getCreateTime());
//        order.setDealAmount(tradeOrder.getDealAmount());
//        order.setGuestOwner(tradeOrder.getGuestOwner());
//        order.setId(tradeOrder.getId());
//        order.setMemberId(tradeOrder.getMemberId());
//        order.setOrderId(tradeOrder.getOrderId());
//        order.setOrderName(tradeOrder.getOrderName());
//        order.setRealAmount(tradeOrder.getRealAmount());
//        order.setStatus(tradeOrder.getStatus());
//        order.setTotalAmount(tradeOrder.getTotalAmount());
//        order.setUpdateTime(tradeOrder.getUpdateTime());
//        order.setVersion(tradeOrder.getVersion());
//        return order;
//    }
//
//    public static CartItemVo fromPurchasedProductItem(PurchasedProductItem item) {
//        CartItemVo civ = new CartItemVo();
//        civ.setCartId(item.getId());
//        civ.setCartStatus(item.getStatus());
//        civ.setCreateTime(item.getCreateTime());
//        civ.setMemberId(item.getMemberId());
//        civ.setProductId(item.getProductId());
//        civ.setNum(item.getNum());
//        civ.setOrderId(item.getOrderId());
//        civ.setPrice(item.getPrice());
//        civ.setRealPrice(item.getRealPrice());
//        return civ;
//    }
//
//}
